package com.liwbn.rbac.service;

import java.util.List;

import com.liwbn.rbac.core.generic.GenericService;
import com.liwbn.rbac.core.orm.mybatis.Page;
import com.liwbn.rbac.model.Role;
import com.liwbn.rbac.vo.RolePermissionVO;

public interface RoleService extends GenericService<Role, Long> {

    /**
     * 分页数据查询
     * 
     * @param pageNo
     * @param pageSize
     * @return
     */
    public Page<Role> selectPage(Integer pageNo, Integer pageSize);

    public void deleteByIds(List<Long> ids);

    public List<Role> selectAllRoles();

    /**
     * 获取所有的角色权限信息
     * 
     * @return
     */
    public List<RolePermissionVO> selectAllRolesAndPermission();

    public List<Role> selectRolesByUserName(String userName);
}
